﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;

namespace DAL
{
    public class BackstageService
    {
        public static bool AdministratorLogin(string BName, string BPassword)
        {
            using (ExpertDBEntities db=new ExpertDBEntities())
            {
                var shu= db.Backstage.SingleOrDefault(b => b.BName == BName && b.BPassword == BPassword);
                if (shu!=null)
                {
                    return true;
                }
                return false;
            }
        }
    }
}
